<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>盆栽商店</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta content="eCommerce HTML Template Free Download" name="keywords">
    <meta content="eCommerce HTML Template Free Download" name="description">

    <!-- Favicon -->
    <link href="img/favicon.ico" rel="icon">

    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400|Source+Code+Pro:700,900&display=swap" rel="stylesheet">



    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet" type="text/css">
    <link href="lib/slick/slick.css" rel="stylesheet" type="text/css">
    <link href="lib/slick/slick-theme.css" rel="stylesheet" type="text/css">

    <link href="css/mainPage.css" rel="stylesheet" type="text/css">
    <link href="css/autoComplete.css" rel="stylesheet" type="text/css">
</head>

<body>
<!-- Top bar Start -->
<div class="top-bar">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-6">
                <i class="fa fa-envelope"></i>
                CSU
            </div>
            <div class="col-sm-6">
                <i class="fa fa-phone-alt"></i>
                400-114514
            </div>
        </div>
    </div>
</div>
<!-- Top bar End -->

<!-- Nav Bar Start -->
<div class="nav">
    <div class="container-fluid">
        <nav class="navbar navbar-expand-md bg-dark navbar-dark">
            <a href="#" class="navbar-brand">MENU</a>
            <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse justify-content-between" id="navbarCollapse">
                <div class="navbar-nav mr-auto">
                    <a href="welcome" class="nav-item nav-link active">主页</a>
                    <a href="category?categoryId=cat" class="nav-item nav-link">花本植物</a>
                    <a href="category?categoryId=dog" class="nav-item nav-link">木本植物</a>
                    <a href="category?categoryId=bird" class="nav-item nav-link">草本植物</a>
                    <a href="category?categoryId=pokemon" class="nav-item nav-link">多肉植物</a>
                    <a href="category?categoryId=bugCat" class="nav-item nav-link">景观植物</a>
                </div>
                <div class="navbar-nav ml-auto">
                    <a href="cart" class="nav-item nav-link">购物车</a>
                    <!--用户是否登录-->
                    <c:if test="${sessionScope.username != null}">
                        <a href="space" class="nav-item nav-link">用户中心</a>
                    </c:if>
                    <c:if test="${sessionScope.username == null}">
                        <a href="login" class="nav-item nav-link">欢迎登录</a>
                    </c:if>
                </div>
            </div>
        </nav>
    </div>
</div>
<!-- Nav Bar End -->

<!-- Bottom Bar Start -->
<div class="bottom-bar">
    <div class="container-fluid">
        <div class="row align-items-center">
            <div class="col-md-3">
                <div class="logo">
                    <a href="welcome">
                        <img src="image/mainPage/logo.png" alt="Logo">
                    </a>
                </div>
            </div>
            <div class="col-md-6">
                <form action="Search" method="post">
                    <div class="search">
                        <input type="text" placeholder="搜索想要的盆栽吧" name="searchName" id="searchName">
                        <button><i class="fa fa-search"></i></button>
                    </div>
                    <!--自动补全-->
                    <div id="autoComplete" class="searchComp">
                        <li id="autoCompleteLi">
                        </li>
                    </div>
                </form>
            </div>
            <div class="col-md-3">
                <div class="user">
                    <a href="cart" class="btn cart">
                        <i class="fa fa-shopping-cart"></i>
                        <span id="cartNumberSpan">(0)</span>
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Bottom Bar End -->

<!-- Main Slider Start -->
<div class="header">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-3">
                <nav class="navbar bg-light">
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class="nav-link" href="welcome"><i class="fa fa-home"></i>主页</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="category?categoryId=cat"><i class="fa fa-paw"></i>花本植物</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="category?categoryId=dog"><i class="fa fa-paw"></i>木本植物</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="category?categoryId=bird"><i class="fa fa-paw"></i>草本植物</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="category?categoryId=pokemon"><i class="fa fa-paw"></i>多肉植物</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="category?categoryId=bugCat"><i class="fa fa-paw"></i>景观植物</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="recommend?uid=${sessionScope.uid}"><i class="fa fa-plus-square"></i>难以抉择?查看为您推荐</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="#"><i class="fa fa-mobile-alt"></i>联系我们</a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="col-md-6">
                <div class="header-slider normal-slider">
                    <div class="header-slider-item">
                        <img src="image/bugCatImage/capoo.png" alt="Slider Image" style="height: 400px;width: 600px;"/>
                        <div class="header-slider-caption">
                            <p>常春藤</p>
                            <a class="btn" href="Item?productId=24&categoryId=bugCat"><i class="fa fa-shopping-cart"></i>立刻购买</a>
                        </div>
                    </div>
                    <div class="header-slider-item">
                        <img src="image/mainPage/2.png" alt="Slider Image" style="height: 400px;width: 600px;"/>
                        <div class="header-slider-caption">
                            <p>山地玫瑰</p>
                            <a class="btn" href="Item?productId=21&categoryId=pokemon"><i class="fa fa-shopping-cart"></i>立刻购买</a>
                        </div>
                    </div>
                    <div class="header-slider-item">
                        <img src="image/mainPage/3.png" alt="Slider Image" style="height: 400px;width: 600px;"/>
                        <div class="header-slider-caption">
                            <p>红掌</p>
                            <a class="btn" href="Item?productId=5&categoryId=cat"><i class="fa fa-shopping-cart"></i>立刻购买</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="header-img">
                    <div class="img-item">
                        <img src="image/mainPage/category-1.jpg" />
                        <a class="img-text" href="Item?productId=16&categoryId=bird">
                            <p>绿萝</p>
                        </a>
                    </div>
                    <div class="img-item">
                        <img src="image/mainPage/category-2.jpg" />
                        <a class="img-text" href="Item?productId=9&categoryId=dog">
                            <p>铁树</p>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Main Slider End -->

<!-- Feature Start-->
<div class="feature">
    <div class="container-fluid">
        <div class="row align-items-center">
            <div class="col-lg-3 col-md-6 feature-col">
                <div class="feature-content">
                    <i class="fab fa-cc-mastercard"></i>
                    <h2>安全保障</h2>
                    <p>
                        植物绝对健康
                    </p>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 feature-col">
                <div class="feature-content">
                    <i class="fa fa-truck"></i>
                    <h2>种类繁多</h2>
                    <p>
                        除了没有的我们都有
                    </p>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 feature-col">
                <div class="feature-content">
                    <i class="fa fa-sync-alt"></i>
                    <h2>专业团队</h2>
                    <p>
                        专业团队为您提供支持
                    </p>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 feature-col">
                <div class="feature-content">
                    <i class="fa fa-comments"></i>
                    <h2>24/7 客服</h2>
                    <p>
                        24/7 客服为您服务
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Feature End-->

<!-- Category Start-->
<div class="category">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-3">
                <div class="category-item ch-400">
                    <img src="image/mainPage/category-3.jpg" />
                    <a class="category-name" href="Item?productId=13&categoryId=bird">
                        <p>银线蕨</p>
                    </a>
                </div>
            </div>
            <div class="col-md-3">
                <div class="category-item ch-250">
                    <img src="image/mainPage/category-4.jpg" />
                    <a class="category-name" href="Item?productId=10&categoryId=dog">
                        <p>琴叶榕</p>
                    </a>
                </div>
                <div class="category-item ch-150">
                    <img src="image/mainPage/category-5.png" />
                    <a class="category-name" href="Item?productId=3&categoryId=cat">
                        <p>君子兰</p>
                    </a>
                </div>
            </div>
            <div class="col-md-3">
                <div class="category-item ch-150">
                    <img src="image/mainPage/category-6.jpg" />
                    <a class="category-name" href="Item?productId=7&categoryId=dog">
                        <p>富贵籽</p>
                    </a>
                </div>
                <div class="category-item ch-250">
                    <img src="image/mainPage/category-7.jpg" />
                    <a class="category-name" href="Item?productId=15&categoryId=bird">
                        <p>狼尾蕨</p>
                    </a>
                </div>
            </div>
            <div class="col-md-3">
                <div class="category-item ch-400">
                    <img src="image/mainPage/category-8.jpg" />
                    <a class="category-name" href="Item?productId=23&categoryId=pokemon">
                        <p>红宝石</p>
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Category End-->

<!-- Call to Action Start -->
<div class="call-to-action">
    <div class="container-fluid">
        <div class="row align-items-center">
            <div class="col-md-6">
                <h1>遇到问题?立即联系我们</h1>
            </div>
            <div class="col-md-6">
                <a href="tel:0123456789">400-114514</a>
            </div>
        </div>
    </div>
</div>
<!-- Call to Action End -->



<!-- Footer Bottom Start -->
<div class="footer-bottom">
    <div class="container">
        <div class="row">
            <div class="col-md-6 copyright">
                <p>Supported By &copy; <a href="https://csu.edu.cn">CSU</a>. </p>
            </div>

            <div class="col-md-6 template-by">
                <p>Powered By <a href="https://csu.edu.cn">CSUer</a></p>
            </div>
        </div>
    </div>
</div>
<!-- Footer Bottom End -->

<!-- Back to Top -->
<a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>

<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/slick/slick.min.js"></script>

<!-- Template Javascript -->
<script src="javascripts/index.js"></script>
<script src="javascripts/cartNum.js"></script>
<script src="javascripts/autoComplete.js"></script>
</body>
</html>
